TEMPLATE = app
TARGET   = LicenseTool
QT      += core gui widgets network
CONFIG += c++14


INCLUDEPATH += $$PWD/../../cvv.utils

#配置输入路径
win32:mingw{
    INCLUDEPATH += $$PWD/../../3rdparty/openssl/include
    LIBS += -L$$PWD/../../3rdparty/openssl/lib
    LIBS += -lcrypto-3-x64 -lssl-3-x64
    CONFIG(debug, debug|release){
    LIBS += $$PWD/../../../cvvinfrastructure_build/lib/Debug/cvv.infrastructure.utils.dll

    }else{
    LIBS += $$PWD/../../../cvvinfrastructure_build/lib/Release/cvv.infrastructure.utils.dll

    }
}

win32:msvc{
    CONFIG(debug, debug|release){
    LIBS += $$PWD/../../../cvvinfrastructure_build/lib/Debug/cvv.infrastructure.utils.lib

    }else{
    LIBS += $$PWD/../../../cvvinfrastructure_build/lib/Release/cvv.infrastructure.utils.lib

    }
}

linux{
    CONFIG(debug, debug|release){
    LIBS += $$PWD/../../../cvvinfrastructure_build/lib/Debug/libcvv.infrastructure.utils.so.1.0.0


    }else{
    LIBS += $$PWD/../../../cvvinfrastructure_build/lib/Release/libcvv.infrastructure.utils.so.1.0.0

    }
    LIBS += -lssl -lcrypto
}


#配置输出路径
CONFIG(debug, debug|release){
    DESTDIR =     $$PWD/../../../cvvinfrastructure_build/lib/Debug
    MOC_DIR =     $$PWD/../../../cvvinfrastructure_build/moc/Debug/license_tool
    RCC_DIR =     $$PWD/../../../cvvinfrastructure_build/rcc/Debug/license_tool
    UI_DIR =      $$PWD/../../../cvvinfrastructure_build/ui/Debug/license_tool
    OBJECTS_DIR = $$PWD/../../../cvvinfrastructure_build/obj/Debug/license_tool
}else{
    DESTDIR =     $$PWD/../../../cvvinfrastructure_build/lib/Release
    MOC_DIR =     $$PWD/../../../cvvinfrastructure_build/moc/Release/license_tool
    RCC_DIR =     $$PWD/../../../cvvinfrastructure_build/rcc/Release/license_tool
    UI_DIR =      $$PWD/../../../cvvinfrastructure_build/ui/Release/license_tool
    OBJECTS_DIR = $$PWD/../../../cvvinfrastructure_build/obj/Release/license_tool
}

SOURCES += \
    main.cpp \
    MainWidget.cpp

FORMS += \
    MainWidget.ui

HEADERS += \
    MainWidget.h




